$OpenBSD: patch-coregrind_m_main_c,v 1.1 2017/05/26 22:07:16 sthen Exp $

https://bugs.kde.org/show_bug.cgi?id=357833
https://bitbucket.org/uebayasi/valgrind-openbsd/issues/40/mmap-failure-cannot-allocate-memory-on

Index: coregrind/m_main.c
--- coregrind/m_main.c.orig
+++ coregrind/m_main.c
@@ -1725,7 +1725,9 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **en
    // child processes will have a reasonable brk value.
    VG_(getrlimit)(VKI_RLIMIT_DATA, &VG_(client_rlimit_data));
    zero.rlim_max = VG_(client_rlimit_data).rlim_max;
+#if 0
    VG_(setrlimit)(VKI_RLIMIT_DATA, &zero);
+#endif
 
    // Get the current process stack rlimit.
    VG_(getrlimit)(VKI_RLIMIT_STACK, &VG_(client_rlimit_stack));
